import { createStore } from 'vuex'
import createPersistedstate  from 'vuex-persistedstate'
export default createStore({
  state: {
    qingUserInfo: {}
  },
  getters: {
    getUserInfo(state){
      return state.qingUserInfo
    }
  },
  mutations: {
    setUserInfo(state, userinfo){
      state.qingUserInfo = userinfo
    },
    resetUserInfo(state){
      state.qingUserInfo = {}
    }
  },
  actions: {
  },
  modules: {
  },
  plugins: [
    createPersistedstate({
      key: 'qingUserInfo'
    })
  ]
})
